package com.pai4j.pgc.dao.community;
import com.pai4j.pgc.entity.community.CCVideoSummaryEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 *
 * @author: CYM-pai
 * @date: 2025/10/27 14:02
 **/
@Repository
public interface ICCVideoSummaryDAO extends JpaSpecificationExecutor<CCVideoSummaryEntity>, JpaRepository<CCVideoSummaryEntity, Long> {



    CCVideoSummaryEntity findByVideoIdAndStatus(Long videoId, String status);

    @Query(value = "select videoId from CCVideoSummaryEntity where status = 'COMPLETED'")
    List<Long> findAllCompletedIds();
}
